import React from 'react';
import {withRouter} from 'react-router-dom';

import HaoKeXingKeReport from '~/component/PerformanceAnalysis/HaoKeXingKeReport';
import GaoTuXingKeReport from '~/component/PerformanceAnalysis/GaoTuXingKeReport';
import {getReportsWhiteList} from '~/utils/menu.js';
// 行课
function Index(props) {
    const {id} = props.match.params;
    const gaotuId = getReportsWhiteList().GAO_TU_XING_KE_REPORT;
    if (id === `${gaotuId}`) {
        return <GaoTuXingKeReport {...props} />;
    }
    return <HaoKeXingKeReport {...props} />;
}

export default withRouter(Index);
